package model

import "gorm.io/gorm"

type Review struct {
	gorm.Model
	UserId    int `gorm:"type:int;commit:用户ID;"`
	VideoId   int `gorm:"type:int;commit:视频ID;"`
	Operation int `gorm:"type:int;commit:1通过/2驳回/3下架;"`
	Reason    int `gorm:"type:int;commit:具体原因:1内容违规/2版权问题/3质量不达标;;"`
}

func (r *Review) ReviewAdd(DB *gorm.DB) error {
	var err error
	err = DB.Create(&r).Error
	return err
}
